//
//  PicFooterView.m
//  FlowerRainGround
//
//  Created by zfc on 16/4/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "PicFooterView.h"
#import "DetailPostViewController.h"
#import "RecommendModel.h"

@interface PicFooterView (){
    UITextField *textFiled;
}

@end

@implementation PicFooterView


- (instancetype)initWithFrame:(CGRect)frame {
    if(self = [super initWithFrame:frame]) {
//        DetailPostViewController *detailVC = [[DetailPostViewController alloc] init];
//        RecommendModel *model = detailVC.model;
//        
//        self.contentLabel.text = model.content;
//        self.commentLabel.text = model.comment;
//        self.shareLabel.text = model.share;
//        self.appointLabel.text = model.appoint;

        
    }
    return self;
}

- (IBAction)comment:(id)sender {
//    //1.初始化
//    [IQKeyBoardManager installKeyboardManager];
//    //2.添加一个输入框   并让他不显示
//    textFiled = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
//    [self addSubview:textFiled];
//    //3.添加键盘上方输入框布局
//    __unsafe_unretained UITextField *tf = textFiled;
//    [textFiled addTextFiled:^(UITextField *mTextFiled) {
//        //点击输入框的回车之后 回调回来的内容
//        [[[iToast makeText:[NSString stringWithFormat:@"输入的内容：%@",mTextFiled.text]] setGravity:iToastGravityCenter] show];
//        [tf resignFirstResponder];
//    }];
//    
}

-(void) showKeyboard:(id) sender{
//    //4.显示键盘
//    [textFiled becomeFirstResponder];
    
}

+ (instancetype)footerView{
    return [[[NSBundle mainBundle]loadNibNamed:@"PicFooterView" owner:nil options:nil]lastObject];
}


@end
